package com.jaws.demo.common.enums;


/**
 * 账户表ID生成策略枚举<br/>
 * <p>
 * ACCOUNT_INFO:account_info<br/>
 * ACCOUNT_FROZEN:account_frozen<br/>
 * ACCOUNT_ORDER:account_order<br/>
 *
 * @author maojian
 * @date 2017-05-27 16:45:06
 * @since v1.0.0
 */
public enum TableNameEnum {
	ACCOUNT_FLOW("account_flow", 10),
	ACCOUNT_TRADE("account_trade", 8);

	private final String tableName;

	private final int segment;

	/**
	 * 构造函数
	 *
	 * @param key    业务主键key
	 * @param prefix 前缀
	 * @param step   连续生成主键的步长
	 * @param len    最终生成的业务主键长度
	 */
	private TableNameEnum(String tableName, int segment) {
		this.tableName = tableName;
		this.segment = segment;
	}

	public String getTableName() {
		return tableName;
	}

	public int getSegment() {
		return segment;
	}


}
